package com.mayuan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mayuan.domain.ResponseResult;
import com.mayuan.domain.dto.MenuDto;
import com.mayuan.domain.entity.Menu;
import com.mayuan.domain.vo.MenuListVo;

import java.util.List;


/**
 * 菜单权限表(Menu)表服务接口
 *
 * @author makejava
 * @since 2023-03-25 13:38:45
 */
public interface MenuService extends IService<Menu> {

    List<String> selectPermsByUserId(Long id);

    List<Menu> selectRouterMenuTreeByUserId(Long userId);

    ResponseResult<MenuListVo> list(MenuDto menuDto);

    ResponseResult add(Menu menu);

    ResponseResult selectMenuInfo(Long id);

    ResponseResult updateMenu(Menu menu);

    ResponseResult deleteById(Long menuId);

    //List<Menu> treeSelectByUserId(Long userId);
    boolean hasChild(Long menuId);

    List<Menu> selectMenuList(Menu menu);

    List<Long> selectMenuListByRoleId(Long roleId);
}
